import request from '@/utils/request'

const baseURL = '/energymanagement'

export function getEnergyForSearch () {
  return request({
    url: `${baseURL}/energy-variety/getEnergyForSearch`
  })
}

export function energyUnitModel () {
  return request({
    url: '/basic-model/tree/energyUnitModel?modelCode=energy_unit&nodeId='
  })
}

export function pieEnergyCost (data) {
  return request({
    url: `${baseURL}/EnergyCostAnalysisController/PieEnergyCost`,
    method: 'post',
    data
  })
}

export function lineEnergyCost (data) {
  return request({
    url: `${baseURL}/EnergyCostAnalysisController/LineEnergyCost`,
    method: 'post',
    data
  })
}

export function energyCostContrast (data) {
  return request({
    url: `${baseURL}/EnergyCostAnalysisController/energyCostContrast`,
    method: 'post',
    data
  })
}
